package org.arch_learn.servlet_container.components.container;

import javax.servlet.Servlet;
import java.util.regex.Pattern;

public class Wrapper {
    private String name;
    private Pattern pattern;
    public Servlet servlet;

    public Wrapper(String name ,Pattern pattern, Servlet httpServlet) {
        this.name = name;
        this.pattern = pattern;
        this.servlet = httpServlet;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }
}
